package 强化训练;

public class 二进制插入09 {
    public static int binInsert(int n, int m, int i, int j) {
        // write code here
//        m = m << j;
        //让m与n进行或
//        n = n | m;
//        return n;
        return n | (m << j);
    }

    public static void main(String[] args) {
        System.out.println(binInsert(1024, 19, 0, 4));
    }
}
